<ion-view title="船舶基本信息查询" id="page1">
    <ion-content padding="true" class="has-header">
        <div style="text-align:left;">
            <img src="img/SmtDuWFARYbZti55oYiQ_haishi.png" style="height:60px;width:60px;">
            <span class="titlespan">松江海事船舶查询系统</span>
        </div>
        <form class="list">
            <label class="item item-input" name="ShipName">
                <i class="icon ion-search placeholder-icon"></i>
                <input type="search" ng-model="keyword" placeholder="船名">
            </label>
            <label class="item item-input" name="ShipRegisterNO">
                <i class="icon ion-search placeholder-icon"></i>
                <input type="search" ng-model="registerNO" placeholder="船舶登记号">
            </label>
        </form>
        <button ng-click="DoQuery(keyword,registerNO)" id="page1-button3" class="button button-positive  button-block">模糊查询</button>
         <button ng-click="AddNew()" id="page1-button4" ng-show="IsFromWeb" class="button button-positive  button-block">新增</button>
        <ion-list>
            <ion-item ng-repeat="Ship in Ships">
                <a ng-click="goDetail(Ship.ID)" style="float:left" ng-bind="Ship.CName"></a>
                
                <a ng-click="modify(Ship.ID)" ng-show="IsFromWeb"  style="float:right">修改</a>
                <a ng-click="Delete(Ship)" ng-show="IsFromWeb" style="float:right;margin-right:10px">删除</a>
                
                <a ng-click="AddStaff(Ship.ID)" ng-show="IsFromWeb" style="float:right;margin-right:10px">新增船员</a>
                <a ng-click="AddCert(Ship.ID)"  ng-show="IsFromWeb" style="float:right;margin-right:10px">新增基本证书</a>
            </ion-item>
        </ion-list>
    </ion-content>
</ion-view>